package br.com.fatec.cqr.view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Toolkit;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;

public class PainelSql {
	static JPanel textPanel = new JPanel();
	static JTabbedPane query = new JTabbedPane();
	static EditorPane display = new EditorPane();

	public PainelSql() {

		Toolkit size = Toolkit.getDefaultToolkit();
		int width = size.getScreenSize().width;
		int height = size.getScreenSize().height;

		textPanel.setBackground(new Color(119, 136, 153));
		query.setFont(new Font("Arial", Font.PLAIN, 12));
		display.setFont(new Font("Arial", Font.BOLD, 14));
		display.setForeground(new Color(0, 0, 205));

		JScrollPane scroll = new JScrollPane(display);
		scroll.setVerticalScrollBarPolicy(scroll.VERTICAL_SCROLLBAR_ALWAYS);
		JScrollPane s2 = scroll;

		query.setPreferredSize(new Dimension(width - 40, height));

		GridLayout gridLayout = new GridLayout(1, 1);
		textPanel.setLayout(gridLayout);
		textPanel.add(query);
	}

}
